#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    setMinimumSize(911,700);
    setCentralWidget(CreateWindowByInfo::getWidgetByWindowName("C:/WINDOWS/system32/notepad.exe","-记事本",this));
}

MainWindow::~MainWindow()
{
    CreateWindowByInfo::close();
    delete centralWidget();
    delete ui;
}
